package com.andy.pojo;

import javax.sql.DataSource;
import java.util.HashMap;
import java.util.Map;

public class Configuration {

    //数据源
    private DataSource dataSource;

    //封装了sql对象的Map
    private Map<String,MappedStatement> mappedStatementMap = new HashMap<String,MappedStatement>();

    public MappedStatement getMappedStatement(String mappedStatementKey){
        return mappedStatementMap.get(mappedStatementKey);
    }

    public void putMappedStatement(String mappedStatementKey,MappedStatement mappedStatement){
        mappedStatementMap.put(mappedStatementKey,mappedStatement);
    }

    public DataSource getDataSource() {
        return dataSource;
    }

    public void setDataSource(DataSource dataSource) {
        this.dataSource = dataSource;
    }
}
